/*
 * Copyright © 2018 CODESTD.COM Inc. All rights reserved.
 */
package com.codestd.security.redis.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.TimeToLive;

import java.util.concurrent.TimeUnit;

/**
 * TODO
 *
 * @author jaune
 * @since 1.0.0
 */
@RedisHash("android.user.refreshToken")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AndroidUserRefreshToken {

    @Id
    private String userId;

    private String refreshToken;

    @TimeToLive(unit = TimeUnit.DAYS)
    private Long ttl;

}
